$(document).ready(function(){
    
    
        $('.qouantity').each(function(){
            var currentProduct = $(this).attr('product');//product id
            var currentProductQuantity = $(this).val();
            $.ajax(
            {
                url:'inc/addHistory.php',
                data:"productID="+currentProduct+"&productQuantity="+currentProductQuantity,
                type: 'post',
                success: function(j){
                //                        $('.infoDiv').html("<img src=\"images/loading.gif\" width=\"50px\" style=\"display:block; margin:auto; border-radius:3px;\"/>");
                //                $('.infoDiv').html(j);
                }
            });
        });
		
		
      

      
    });// end approve paying
    
    
    
});
